<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>猫途鹰旅游-入口</title>
</head>
<body>
<jsp:include page="css.jsp"/>
<style>
    .entrance-choose-container {
        height: 100%;
        width: 100%;
        min-width: 896px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background-image: url('images/background.jpg');
        /* 背景图垂直、水平均居中 */
        background-position: center center;
        /* 背景图不平铺 */
        background-repeat: no-repeat;
        /* 当内容高度大于图片高度时，背景图像的位置相对于viewport固定 */
        background-attachment: fixed;
        /* 让背景图基于容器大小伸缩 */
        background-size: cover;
    }

    .entrance-choose-container .entrance-choose-header {
        height: 300px;
        padding-bottom: 60px;
        width: 100%;
        min-width: 896px;
        display: flex;
        justify-content: center;
        align-items: end;
        color: white;
        font-size: 44px;
        font-weight: 600;
        text-align: center;
        letter-spacing: 0.01em;
        line-height: 24px;
    }

    .entrance-choose-container .entrance-choose-body {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .entrance-choose-container .entrance-choose-body .choose-panel.left:hover,
    .entrance-choose-container .entrance-choose-body .choose-panel.right:hover {
        cursor: pointer;
    }

    .entrance-choose-container .entrance-choose-body .choose-panel {
        width: 250px;
        height: 250px;
        background-color: #1fc8db;
        background-image: linear-gradient(141deg, #9fb8ad 0%, #1fc8db 51%, #2cb5e8 75%);
        opacity: 0.8;
    }

    .entrance-choose-container .entrance-choose-body .choose-panel .card-body {
        color: #ffffff !important;
        font-size: 28px !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .entrance-choose-container .entrance-choose-body .middle {
        width: 20px;
    }
</style>
<div class="entrance-choose-container">
    <div class="entrance-choose-header">
        <h1>猫途鹰旅游</h1>
    </div>
    <div class="entrance-choose-body">
        <div class="choose-panel left card text-center border border-primary">
            <div id="tourist-btn" class="card-body text-muted">
                游客入口
            </div>
        </div>
        <div class="middle"></div>
        <div class="choose-panel right card text-center border border-secondary">
            <div id="admin-btn" class="card-body text-muted">
                管理员入口
            </div>
        </div>
    </div>
</div>

</body>
<script type="text/javascript">
    $(document).ready(function () {
        // 跳转到管理员登录页
        $("#admin-btn").click(function () {
            window.location.href = "login.jsp";
        });

        // 跳转到游客登录页
        $("#tourist-btn").click(function () {
            window.location.href = "tourist.jsp";
        });
    });
</script>
</html>
